<template>
  <div>
    <GoodsList :item="listprice"></GoodsList>
  </div>
</template>

<script>
import GoodsList from '@/components/GoodsList.vue'
import { getListAll } from '@/api/searchlist'
export default {
  components: {
    GoodsList
  },
  async created () {
    const result = await getListAll(this.$route.query.sortType, this.$route.query.search)
    console.log(result)
    this.listprice = result.data.list.data
  },
  data () {
    return {
      listprice: []
    }
  }
}
</script>

<style>

</style>
